<form_item> : Add Form Item
Defines a form item.
Syntax:
<form_item>("FormID", "ItemLabel", "ItemType", "ItemDefValue", "ItemVariable")
FormID
A text identifier of the form (for example, "FM1"). All the items of the
same form must have the same identifier.
ItemLabel
The label that appears above the control in the form window.
ItemType
Item type. Can be one of these:
"LIST" - list (combo) box selection
"EDIT" - edit control (single line)
"CHECK" - check box button
"LINE" - static line
"TEXT" - static text
ôBUTTONö - button
ôPWDö - password input box
ItemDefValue
Defines default value (the value that initially appears in the form window).
ItemfVariable
Variable that receives the data (value) the user inserts.
Example:
<#> Sample: Mathematical expressions calculator
<#>
<cmds>
<form_item>("f1","Math. Expression:","EDIT","","vExpression")
<form_item>("f1","Example: 1+(3/2-3.212)^2","TEXT","","")
<label>("Show")
<form_show>("f1","Mathematical Expression Calculator","shell32.dll",12)
<if_str>("_vCanceled == 1") <exitmacro> <endif>
<var_oper>(vResult,"%vExpression%",CALC_EXPRESSION,"4","", "0")
<msg>(-100,-100,"vResult","Result:",1)
<goto>("Show")